package com.ihmp.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "tproductinrooms", catalog = "ihmp")
public class Tproductinrooms implements Serializable{
	private static final long serialVersionUID = -723583058586873479L;
	
	@Id
	@GeneratedValue
	@Column(name = "ProductInRoomId", unique = true, nullable = false)
	private Integer productInRoomId;
	
	@Column(name = "ProductInRoomCode")
	private String productInRoomCode;
	
	@Column(name = "ProductInRoomName")
	private String productInRoomName;
	
	@ManyToOne
	@JoinColumn(name="HotelID")
	private Thotels hotel;
	
	@Column(name = "Note")
	private String note;
	
	@Column(name = "Creater")
	private Integer creater;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CreateDate")
	private Date createDate;
	
	@Column(name = "Editer")
	private Integer editer;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EditDate")
	private Date editDate;
	
//	public Tproductinrooms(){}
	
//	public Tproductinrooms(Integer productInRoomId){
//		this.productInRoomId = productInRoomId;
//	}
//	
//	public Tproductinrooms(Integer productInRoomId,String productInRoomCode,String productInRoomName,Thotels hotel,
//						   String note,Integer creater,Date createDate,Integer editer,Date editDate){
//		this.setProductInRoomId(productInRoomId);
//		this.setProductInRoomCode(productInRoomCode);
//		this.setProductInRoomName(productInRoomName);
//		this.setHotel(hotel);
//		this.setNote(note);
//		this.setCreater(creater);
//		this.setCreateDate(createDate);
//		this.setEditer(editer);
//		this.setEditDate(editDate);
//	}

	public Integer getProductInRoomId() {
		return productInRoomId;
	}
	
	public void setProductInRoomId(Integer productInRoomId) {
		this.productInRoomId = productInRoomId;
	}

	
	public String getProductInRoomCode() {
		return productInRoomCode;
	}

	public void setProductInRoomCode(String productInRoomCode) {
		this.productInRoomCode = productInRoomCode;
	}
	
	
	public String getProductInRoomName() {
		return productInRoomName;
	}

	public void setProductInRoomName(String productInRoomName) {
		this.productInRoomName = productInRoomName;
	}
	
	
	public Thotels getHotel() {
		return hotel;
	}

	public void setHotel(Thotels hotel) {
		this.hotel = hotel;
	}

	
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	
	public Integer getCreater() {
		return creater;
	}

	public void setCreater(Integer creater) {
		this.creater = creater;
	}

	
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getEditer() {
		return editer;
	}

	public void setEditer(Integer editer) {
		this.editer = editer;
	}

	public Date getEditDate() {
		return editDate;
	}

	public void setEditDate(Date editDate) {
		this.editDate = editDate;
	}	
	
	
}
